package edu.szcu.vitaguard.entity;

import lombok.Data;
import java.time.LocalDateTime;

/**
 * 处方项实体类
 */
@Data
public class PrescriptionItem {
    /**
     * 处方项ID
     */
    private Integer itemId;

    /**
     * 处方ID
     */
    private Integer prescriptionId;

    /**
     * 药品ID
     */
    private Integer medicineId;

    /**
     * 剂量
     */
    private String dosage;

    /**
     * 频率
     */
    private String frequency;

    /**
     * 持续时间
     */
    private String duration;

    /**
     * 数量
     */
    private Integer quantity;

    /**
     * 说明
     */
    private String instructions;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    /**
     * 处方对象
     */
    private Prescription prescription;

    /**
     * 药品对象
     */
    private Medicine medicine;
}
